package com.yonyou.brigade.order_center.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuexmf@yonyou.com
 * @since 2018-09-06
 */
@TableName("bri_train_payment")
public class BriTrainPayment extends Model<BriTrainPayment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 币种
     */
    private String currency;
    /**
     * 支付金额
     */
    private BigDecimal amount;
    /**
     * 当前汇率
     */
    @TableField("exchange_rate")
    private BigDecimal exchangeRate;
    /**
     * 处理类别
     */
    @TableField("deal_type")
    private String dealType;
    /**
     * 支付方式
     */
    @TableField("pay_type")
    private String payType;
    /**
     * 支付说明
     */
    @TableField("pay_remark")
    private String payRemark;
    /**
     * 游票/抵用券抵扣的总金额
     */
    @TableField("voucher_pay_amount")
    private BigDecimal voucherPayAmount;
    /**
     * 交易类型
     */
    @TableField("pay_category")
    private String payCategory;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getExchangeRate() {
        return exchangeRate;
    }

    public void setExchangeRate(BigDecimal exchangeRate) {
        this.exchangeRate = exchangeRate;
    }

    public String getDealType() {
        return dealType;
    }

    public void setDealType(String dealType) {
        this.dealType = dealType;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayRemark() {
        return payRemark;
    }

    public void setPayRemark(String payRemark) {
        this.payRemark = payRemark;
    }

    public BigDecimal getVoucherPayAmount() {
        return voucherPayAmount;
    }

    public void setVoucherPayAmount(BigDecimal voucherPayAmount) {
        this.voucherPayAmount = voucherPayAmount;
    }

    public String getPayCategory() {
        return payCategory;
    }

    public void setPayCategory(String payCategory) {
        this.payCategory = payCategory;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String CURRENCY = "currency";

    public static final String AMOUNT = "amount";

    public static final String EXCHANGE_RATE = "exchange_rate";

    public static final String DEAL_TYPE = "deal_type";

    public static final String PAY_TYPE = "pay_type";

    public static final String PAY_REMARK = "pay_remark";

    public static final String VOUCHER_PAY_AMOUNT = "voucher_pay_amount";

    public static final String PAY_CATEGORY = "pay_category";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriTrainPayment{" +
        "id=" + id +
        ", orderNo=" + orderNo +
        ", currency=" + currency +
        ", amount=" + amount +
        ", exchangeRate=" + exchangeRate +
        ", dealType=" + dealType +
        ", payType=" + payType +
        ", payRemark=" + payRemark +
        ", voucherPayAmount=" + voucherPayAmount +
        ", payCategory=" + payCategory +
        ", ts=" + ts +
        "}";
    }
}
